#ifndef INC_DRAW_UTILS_H_
#define INC_DRAW_UTILS_H_

#include <d3dx9.h>

// A structure for our custom vertex type
struct CUSTOMVERTEX
{
    D3DXVECTOR3 loc;      // The untransformed, 3D position for the vertex
    DWORD       color;        // The vertex color
};

// Our custom FVF, which describes our custom vertex structure
#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ|D3DFVF_DIFFUSE)


void drawLine( const D3DXVECTOR3 &src
			 , const D3DXVECTOR3 &dst
			 , unsigned color );
void drawAxis( );
void drawGridXZ( int nblocks, int nsubsamples );

extern LPDIRECT3DDEVICE9 g_pd3dDevice;

#endif
